Ext.define("Skood.view.resource.ResourcePanel",{
	extend:'Ext.panel.Panel',
	alias:'widget.resourcePanel',
	
	layout:'border',
	title:'资源列表',
	header:false,
	height:565,
	moduleTree:null,
	initComponent:function(){
		var me = this;
		/*me.moduleTree= Ext.create("Skood.view.resource.ModulePanel",{
				region:'west',
                width: 150,
                rootId:0,
                //id: 'securityTreePanel',
                //itemId:'menuTree',
                title: '功能模块',
                header:true,
                titleCollapse: false,
                hideHeaders: true,
                //rowLines: true,
                //lines: false,
                //rootVisible: false,
                //animCollapse: true,
                collapsed: false,
                collapsible: false,
                iconCls: 'settings'
            });*/
        me.moduleTree={
					xtype:'treepanel',
					region:'west',
					id:'module',
					store:new Skood.store.SecurityMenuStore({rootId:0}),
					title: '功能模块',
                	width: 150,
	                header:true,
	                titleCollapse: false,
	                hideHeaders: true,
	                rowLines: true,
	                lines: false,
	                rootVisible: false,
	                animCollapse: true,
	                collapsed: false,
	                collapsible: false,
	                iconCls: 'settings'
				};
		Ext.apply(me,{
			items:[me.moduleTree,
				{
	            	region:'center',
	            	xtype:'resourceGrid'
	            }],
            viewConfig: {
				
            }
		});
		me.callParent(arguments);
	}
});